package com.yl.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yl.mode2.TActOrder2;
import com.yl.model.TActOrder;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lfs
 * @since 2020-11-30
 */
public interface TActOrderService extends IService<TActOrder> {

    public String unionPay(String orderId);
    public String wxPay(String orderId,String actId);
    public TActOrder createOrder(Long userId,String name,String mobile);
    public TActOrder createOrder(TActOrder2 tActOrder2);
    public TActOrder createOrder(String name,String mobile);
    public TActOrder findTActOrder(String mobile);
    public void orderPaySucceed(String mOrderId);
    public void orderPaySucceed(Map<String, String> mapData) throws Exception;
    public List<TActOrder> getOrderList(String userId, Integer type);
    public IPage<TActOrder> getOrderListByUserAndType(String userId, Integer type, int pageIndex, int pageSize);
    public IPage<TActOrder> getOrderListByOpenId(String openId, String type, int pageIndex, int pageSize);
}
